package fr.afcepf.ai85.ent;

// Generated 21 mars 2013 17:20:56 by Hibernate Tools 3.4.0.CR1

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * PlanningFreqOccas generated by hbm2java
 */
@Entity
@Table(name = "planning_freq_occas", catalog = "gepeto_db")
public class PlanningFreqOccas implements java.io.Serializable {

	private Integer idJoursInscription;
	private TypeActivite typeActivite;
	private InscriptionPeriscolaire inscriptionPeriscolaire;
	private PeriodeInscription periodeInscription;
	private Date dateInscriptionIrregulier;

	public PlanningFreqOccas() {
	}

	public PlanningFreqOccas(TypeActivite typeActivite,
			InscriptionPeriscolaire inscriptionPeriscolaire,
			PeriodeInscription periodeInscription,
			Date dateInscriptionIrregulier) {
		this.typeActivite = typeActivite;
		this.inscriptionPeriscolaire = inscriptionPeriscolaire;
		this.periodeInscription = periodeInscription;
		this.dateInscriptionIrregulier = dateInscriptionIrregulier;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ID_JOURS_INSCRIPTION", unique = true, nullable = false)
	public Integer getIdJoursInscription() {
		return this.idJoursInscription;
	}

	public void setIdJoursInscription(Integer idJoursInscription) {
		this.idJoursInscription = idJoursInscription;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ID_ACTIVITE", nullable = false)
	public TypeActivite getTypeActivite() {
		return this.typeActivite;
	}

	public void setTypeActivite(TypeActivite typeActivite) {
		this.typeActivite = typeActivite;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ID_INSCRIPTION", nullable = false)
	public InscriptionPeriscolaire getInscriptionPeriscolaire() {
		return this.inscriptionPeriscolaire;
	}

	public void setInscriptionPeriscolaire(
			InscriptionPeriscolaire inscriptionPeriscolaire) {
		this.inscriptionPeriscolaire = inscriptionPeriscolaire;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ID_PERIODE", nullable = false)
	public PeriodeInscription getPeriodeInscription() {
		return this.periodeInscription;
	}

	public void setPeriodeInscription(PeriodeInscription periodeInscription) {
		this.periodeInscription = periodeInscription;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "DATE_INSCRIPTION_IRREGULIER", nullable = false, length = 10)
	public Date getDateInscriptionIrregulier() {
		return this.dateInscriptionIrregulier;
	}

	public void setDateInscriptionIrregulier(Date dateInscriptionIrregulier) {
		this.dateInscriptionIrregulier = dateInscriptionIrregulier;
	}

}
